package com.second.hand.trading.server.wb;

import com.second.hand.trading.server.dao.WebSocketDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/user")
public class AA {
    @Autowired
    WebSocketDao webSocketDao;

    @GetMapping("/aa")
    public void aa(){

        String avatar = webSocketDao.Avatar("123");
        System.out.println(avatar);
    }
}
